#ifndef __KSVGEDITOR_CORE_KRHOMBUSSHAPE_H_
#define __KSVGEDITOR_CORE_KRHOMBUSSHAPE_H_

#include <QPainter>
#include "kshape.h"

class KRhombusShape : public KShape
{
public:
    explicit KRhombusShape(QGraphicsItem* parent = nullptr);
    ~KRhombusShape() override;
    KShapeType getShapeType() const override;
    void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) override;
    QDomElement toSvgElement(QDomDocument& doc) const override;
    void loadFromSvgElement(const QDomElement& elem) override;
    void refreshTransformInfoFromRect() override;
    std::unique_ptr<KExportShape> clone() const override;


private:
    QPolygonF m_rhombusPolygon;
};

#endif // __KSVGEDITOR_CORE_KRHOMBUSSHAPE_H_
